<div th:fragment="dept_edit">
<div id="deptModal" style="" class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-keyboard="false">
    <div class="modal-dialog modal-md" style="width:1000px;" id="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel"></h4>
            </div>
            <div class="modal-body" style="overflow: auto;" id="myModalBody">

                <form class="form-horizontal m" id="form-zhuanjia-edit" th:object="${dept}">
                    <input name="deptid" type="hidden" v-model="dept.id">
                    <!--<div class="form-group">
                        <label class="col-sm-3 control-label is-required">机构代码：</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="jigoudaima" v-model="dept.jigoudaima" required>
                        </div>
                    </div>-->
                    <div class="form-group">
                        <label class="col-sm-3 control-label is-required">单位名称：</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="jigoumingcheng" v-model="dept.jigoumingcheng" required>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label ">管理部门：</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="beizhu3" v-model="dept.beizhu3" >
                        </div>
                    </div>
                    <!--<div class="form-group">
                        <label class="col-sm-3 control-label">单位级别：</label>
                        <div class="col-sm-8">
                            <select name="jigoujibie" th:with="type=${@dict.getType('sys_jigoujibie')}" v-model="dept.jigoujibie" class="form-control" type="text">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                            </select>
                        </div>
                    </div>-->
                    <div class="form-group" v-if="roleid=='102'">
                        <label class="col-sm-3 control-label">单位类型：</label>
                        <div class="col-sm-8">
                            <select name="jigouleixing" th:with="type=${@dict.getType('sys_jigouleixing')}" v-model="dept.jigouleixing" class="form-control" type="text">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">地区：</label>
                        <div class="col-sm-4">
                            <select id="beizhu1" name="beizhu1" th:with="type=${@dict.getType('sys_diqu')}" v-model="dept.beizhu1" class="form-control" type="text">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"></option>
                            </select>
                        </div>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" name="diqusearch" v-model="diqusearch" >
                        </div>
                        <div class="col-sm-1">
                            <input type="button" class="btn btn-success btn-md" value="搜索" @click="searchdiqu()">
                        </div>
                    </div>
                    <!--<div class="form-group">
                        <label class="col-sm-3 control-label">省份：</label>
                        <div class="col-sm-8">
                            <select name="shengfen" v-model="dept.shengfen" class="form-control" type="text">
                                <option value="">请选择</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">城市：</label>
                        <div class="col-sm-8">
                            <select name="chengshi" v-model="dept.chengshi" class="form-control" type="text">
                                <option value="">请选择</option>
                            </select>
                        </div>
                    </div>-->
                    <div class="form-group">
                        <label class="col-sm-3 control-label">地址：</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="dizhi" v-model="dept.dizhi">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">邮编：</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="youbian" v-model="dept.youbian">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">传真：</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="chuanzhenghaoma" v-model="dept.chuanzhenghaoma">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">电子邮件：</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="dianziyoujian" v-model="dept.dianziyoujian">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">经办人：</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="jingbanren" v-model="dept.jingbanren">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">经办人办公电话：</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="jingbanrenbangongdianhua" v-model="dept.jingbanrenbangongdianhua">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">经办人手机号码：</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="jingbanrenshoujihaoma" v-model="dept.jingbanrenshoujihaoma">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">负责人：</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="fuzeren" v-model="dept.fuzeren">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">负责人办公电话：</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="fuzerenbangongdianhua" v-model="dept.fuzerenbangongdianhua">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">负责人手机号码：</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="fuzerenshoujihaoma" v-model="dept.fuzerenshoujihaoma">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">财务联系人：</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="caiwulianxiren" v-model="dept.caiwulianxiren">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">财务联系人办公电话：</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="caiwubangongdianhua" v-model="dept.caiwubangongdianhua">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">财务联系人手机号码：</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="caiwushoujihaoma" v-model="dept.caiwushoujihaoma">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">开户行：</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="kaihuhang" v-model="dept.kaihuhang">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">开户名称：</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="kaihumingcheng" v-model="dept.kaihumingcheng">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">银行帐号：</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="yinhangzhanghao" v-model="dept.yinhangzhanghao">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">银行地址：</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="yinhangdizhi" v-model="dept.yinhangdizhi">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">联行号：</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="lianhanghao" v-model="dept.lianhanghao">
                        </div>
                    </div>
                </form>

            </div>

            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" @click="add" v-if="editflag==1">保存</button>
                <button type="button" class="btn btn-primary" @click="modify" v-if="editflag==2">保存</button>
            </div>
        </div>
    </div>
</div>
</div>